package org.example.erpapiservicespringmongoimpl.doc;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Document
public class CaDoc {
    @Id
    private Integer id; // 使用 Integer 以匹配 Int32 类型

    private CategoryDoc level1;
    private CategoryDoc level2;
    private CategoryDoc level3;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public CategoryDoc getLevel2() {
        return level2;
    }

    public void setLevel2(CategoryDoc level2) {
        this.level2 = level2;
    }

    public CategoryDoc getLevel1() {
        return level1;
    }

    public void setLevel1(CategoryDoc level1) {
        this.level1 = level1;
    }

    public CategoryDoc getLevel3() {
        return level3;
    }

    public void setLevel3(CategoryDoc level3) {
        this.level3 = level3;
    }
}
